export const incomeDetailDialogMixin = {
  created () {

  },
  data () {
    return {
      incomeDetailDialogVisible: false
    }
  },
  methods: {
    changeIncomeDetailDialogVisible (val) {
      this.incomeDetailDialogVisible = val
    }
/*    setIncomeDetailData (data, handleFunc) {
      let detailText = ''
      let incomeDetailList = []
      if (data) {
        const {textList, tableData} = data
        textList.forEach((item) => { detailText += `${item.typeName}：${item.content}\n\n` })
        this.form.incomeDetail = detailText
        tableData.forEach((item) => {
          let incomeDetailItem = {}
          incomeDetailItem['typeId'] = item.typeId
          incomeDetailItem['subjectId'] = item.projectId
          incomeDetailItem['explain'] = item.explain
          incomeDetailItem['unitPrice'] = item.perPrice
          incomeDetailItem['amount'] = item.num
          incomeDetailItem['subtotal'] = item.perPrice * item.num
          incomeDetailItem['tax'] = item.tax
          incomeDetailList.push(incomeDetailItem)
        })
        data['detailText'] = detailText
        data['incomeDetailList'] = incomeDetailList
        handleFunc(data)
      }
    } */
  }
}

export const addCoopetationDialogMixin = {
  created () {
  },
  data () {
    return {
      addCooperationDialogVisible: false
    }
  },
  methods: {
    cooperationDialogVisibleChange (val) {
      this.addCooperationDialogVisible = val
    }
  }
}
